package com.sas.entity;

import java.util.List;


/**
 * 用户类 
 * 2017-11-20
 * @author 胡其安
 *一个用户包含多个二级目录，二级目录包含多个三级目录
 *用户登录时进行一对多对多进行角色判断和权限处理，显示不同的二级目录
 */


public class User {
	/**
	 * 用户id
	 */
	private int	user_id	;
	/**
	 * 登录名
	 */
	private String	login_name	;
	/**
	 * 密码
	 */
	private String	login_passwd	;
	/**
	 * 姓名
	 */
	private String	name	;
	/**
	 *只为
	 */
	
	private String	POSITION	;
	/**
	 * 是否是主管
	 */
	private String is_manager;
	/**
	 * 职位类型
	 */
	private String	user_type	;
	/**
	 * 创建时间
	 */
	private String	create_time;
	
	/**
	 * 创建人id
	 */
	private int	creater_id	;
	/**
	 * 更新时间
	 */
	private Integer	update_time	;
	/**
	 * 更新人员id
	 */
	private String updater_id;
	private List<Resources> resources_maps;
	
	public List<Resources> getResources_maps() {
		return resources_maps;
	}
	public void setResources_maps(List<Resources> resources_maps) {
		this.resources_maps = resources_maps;
	}
	
	/**
	 * 人员权限资源
	 * 一对多 一个用户对应多个资源
	 */
	private List<Resources> resourcesList;
	//构造方法
	public User(){};
	public User(String login_name, String login_passwd) {
		this.login_name=login_name;
		this.login_passwd=login_passwd;
	};
	public String getUpdater_id() {
		return updater_id;
	}
	public void setUpdater_id(String updater_id) {
		this.updater_id = updater_id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getLogin_name() {
		return login_name;
	}
	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}
	public String getLogin_passwd() {
		return login_passwd;
	}
	public void setLogin_passwd(String login_passwd) {
		this.login_passwd = login_passwd;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPOSITION() {
		return POSITION;
	}
	public void setPOSITION(String pOSITION) {
		POSITION = pOSITION;
	}
	
	public String getIs_manager() {
		return is_manager;
	}
	public void setIs_manager(String is_manager) {
		this.is_manager = is_manager;
	}
	public String getUser_type() {
		return user_type;
	}
	public void setUser_type(String user_type) {
		this.user_type = user_type;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public int getCreater_id() {
		return creater_id;
	}
	public void setCreater_id(int creater_id) {
		this.creater_id = creater_id;
	}


	public Integer getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Integer update_time) {
		this.update_time = update_time;
	}
	public List<Resources> getResourcesList() {
		return resourcesList;
	}
	public void setResourcesList(List<Resources> resourcesList) {
		this.resourcesList = resourcesList;
	}
	@Override
	public String toString() {
		return "User [user_id=" + user_id + ", login_name=" + login_name
				+ ", login_passwd=" + login_passwd + ", name=" + name
				+ ", POSITION=" + POSITION + ", is_manager=" + is_manager
				+ ", user_type=" + user_type + ", create_time=" + create_time
				+ ", creater_id=" + creater_id + ", update_time=" + update_time
				+ ", updater_id=" + updater_id + ", resources_maps="
				+ resources_maps 
				+ ", resourcesList=" + resourcesList + "]";
	}
	
	
	
}
